package com.system.pojo;

import lombok.Data;

@Data
public class ContractGoods {
    private Integer id;

    private Integer contractId;
    private Contract contract;
    private Integer productId;
    private Product product;
    private Integer purchaseNum;

    private Double purchasePrice;

    private Integer pay;

    private Integer rest;

    private String productName;

    private Boolean status;

    private Integer invoiceNum;
    private Integer newPurchaseNum;

    public void addPurchaseNum(Integer count){
        this.purchaseNum += count;
    }

    public void addRest(Integer count)
    {
        this.rest += count;
    }

    public void sbuRest(Integer count){
        this.rest -= count;
    }
}